package lab02.test14;

public class Text {
    public static void main(String[] args) {
        Rectangle 正方形=new Rectangle();
        正方形.lenght=1;
        正方形.width=1;
        double area=正方形.getArea();
        System.out.println("正方形的面积"+area);
        Circle 圆=new Circle();
        圆.radius=1;
        area=圆.getArea();
        System.out.println("圆的面积"+area);
    }
}
